package com.wuage.domain.model;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

/**
 * 用户表(UacAccount)表实体类
 *
 * @Author: makejava
 * @Date: 2021-09-27 16:27:54
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "uac_account", autoResultMap = true)
public class UacAccount {

    /**
     * 主键
     **/
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 账号
     **/
    @TableField("username")
    private String username;

    /**
     * 昵称
     **/
    @TableField("nickname")
    private String nickname;

    /**
     * 密码
     **/
    @TableField("password")
    private String password;

    /**
     * 是否启用
     **/
    @TableField("enable")
    private Boolean enable;

    /**
     * 角色code
     **/
    @TableField("role")
    private String role;

    /**
     * 邮箱
     **/
    @TableField("email")
    private String email;

    /**
     * 创建时间
     **/
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     **/
    @TableField("update_time")
    private LocalDateTime updateTime;

    /**
     * 是否删除
     **/
    @TableField("deleted")
    private Boolean deleted;

    /**
     * 是否邮箱验证
     **/
    @TableField("email_authentication")
    private Boolean emailAuthentication;

    /**
     * 租户id
     **/
    @TableField("tenant_id")
    private Long tenantId;

    /**
     * 租户名字
     **/
    @TableField("tenant_name")
    private String tenantName;

}